.comp-buy-sell {
    display: flex;
    flex-direction: column;
    height: 100%;

    .buy-sell-nav {
        flex: 0 0 36px;

        .nav-left {
            box-sizing: border-box;
            height: 36px;
            line-height: 36px;
            background-color: $color-bg-light;
            padding: 4px 4px 0 8px;

            .link {
                display: inline-block;
                margin-right: 4px;
                border: 1px #30383c solid;
                background-color: #282b2d;

                &--active {
                    border: 1px #000 solid;
                    background-color: #1b1d1f;
                    cursor: default;
                    pointer-events: none;
                }

                &:last-child {
                    margin-right: 0;
                }

                .nav-img {
                    display: block;
                }
            }
        }

        .nav-right {
            float: right;
            line-height: 36px;
            position: relative;
            .sel_price {
                height: 20px;
                margin-right: 14px;
            }
            .sel_list {
                position: absolute;
                top: 30px;
                background: #000;
                z-index: 99;
                right: 22px;
                p {
                    padding: 4px 8px;
                    line-height: 15px;
                }
            }
        }

        .nav-bottom {
            height: 36px;
            line-height: 36px;

            .list {
                display: flex;

                .item {
                    flex: 1;
                    color: #626364;

                    &:nth-child(1) {
                        padding-left: 4px;
                        text-align: left;
                    }

                    &:nth-child(2) {
                        text-align: center;
                    }

                    &:nth-child(3) {
                        padding-right: 4px;
                        text-align: right;
                    }
                }
            }
        }
    }

    .buy-sell-content {
        transition: all 0.5s linear;
        $height-transfer: 18px;

        position: relative;
        flex: 1;
        font-family: "Helvetica Neue";
        font-size: 13px;

        .row-hidden {
            height: 20px;
            border: 1px red solid;
        }

        .row {
            position: relative;
            height: 20px;
            line-height: 20px;

            .row-list {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 20px;
                cursor: pointer;
                transition: background-color 0.3s linear;
                background-color: rgba(255, 255, 255, 0);

                .fn-white {
                    transition: color 0.3s linear;
                }

                span,
                li {}

                &:hover {
                    background-color: #181a1c;
                }

                .item {
                    float: left;

                    &:nth-child(1) {
                        width: 39%;
                        text-align: left;
                        padding-left: 2%;
                    }

                    &:nth-child(2) {
                        width: 29%;
                        text-align: left;
                    }

                    &:nth-child(3) {
                        box-sizing: border-box;
                        width: 30%;
                        padding-right: 4px;
                        text-align: right;
                    }
                }
            }

            .row-red,
            .row-green {
                position: absolute;
                left: 0;
                top: 0;
                height: 20px;
                z-index: 0;
            }

            .row-red {
                background-color: #2e2120;
                //opacity: 0.1;
            }

            .row-green {
                background-color: #1a241d;
            }
        }

        .content-box {
            display: flex;
            height: 100%;
            flex-direction: column;

            @mixin slider() {
                transition: flex 0.4s ease;
            }

            .price-sell {
                flex: 1;
                position: relative;
                overflow: hidden;
                @include slider;

                .sell-box {
                    display: flex;
                    flex-direction: column-reverse;
                    @include slider;
                    min-height: 100%;

                    &--animate {
                        transition: height 0.4s ease;
                        position: absolute;
                        bottom: 0;
                        width: 100%;
                        left:0;
                    }

                    .row {}
                }
            }

            .price {
                flex: 0 0 36px;
                background-color: $color-bg-light;
                height: 36px;
                line-height: 36px;
                text-align: center;
                font-size: 14px;
                .current {
                    display: inline-block;
                    padding: 4px 12px;
                    line-height: 1.5;

                    &--green {
                        color: $color-buy;

                        .icon:before {
                            color: $color-buy;
                        }
                    }

                    &--red {
                        color: $color-sell;

                        .icon:before {
                            color: $color-sell;
                        }
                    }

                    .text,
                    .icon {
                        vertical-align: middle;
                    }

                    .icon {
                        font-size: 16px;
                    }
                }

                .money {
                    display: inline-block;
                    margin-left: 8px;
                }
            }

            .price-buy {
                flex: 1;
                overflow: hidden;
                @include slider;
            }

            &--buy {
                .price-sell {
                    flex: 0;
                    //overflow: hidden;
                }

                .price-buy {
                    flex: 1;
                    //overflow: auto;
                }
            }

            &--sell {
                .price-sell {
                    flex: 1;
                    //overflow: auto;
                }

                .price-buy {
                    flex: 0;
                    //overflow: hidden;
                }
            }
        }

    }
}

.comp-buy-sell .buy-sell-content .update {

    // .row-list{
    //     transition: background-color 0.3s linear;
    //     background-color: rgba(255,255,255,0.2);
    // }
    .fn-white {
        transition: color 0.3s linear;
        color: $color-red;
    }
}

.comp-buy-sell .buy-sell-content .add {
    animation: show 1s;
    max-height: 0px;
    overflow: hidden;

    .row-red {
        background-color: transparent;
    }

    .row-green {
        background-color: transparent;
    }

    .row-list {
        transition: background-color 0.4s linear;
        background-color: rgba(255, 255, 255, 0.2);

        span,
        li {
            color: #fff;
            transition: color 0.4s linear;
        }
    }
}

@keyframes show {
    from {
        max-height: 0px;
    }

    to {
        max-height: 20px;
    }
}

.comp-buy-sell .buy-sell-content .del {
    height: 0px;
    transition: height 0.3s linear;
    overflow: hidden;
    transition-delay: 0.5s;

    .row-red {
        background-color: transparent;
    }

    .row-green {
        background-color: transparent;
    }

    .row-list {
        transition: background-color 0.2s linear;
        background-color: rgba(255, 255, 255, 0);

        span,
        li {
            transition: color 0.2s linear;
            color: #777;
        }
    }
}